<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: Selection类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_selection.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_selection-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Selection类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class serves as a sort of mask for performing operations on a point cloud. It keeps track of the indices of identified/selected points and provides methods for accessing those indices and modifying them.  
 <a href="class_selection.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="selection_8h_source.html">selection.h</a>&gt;</code></p>
<div class="dynheader">
类 Selection 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_selection.png" usemap="#Selection_map" alt=""/>
  <map id="Selection_map" name="Selection_map">
<area href="class_statistics.html" alt="Statistics" shape="rect" coords="0,0,64,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ac659dc063286fd9c6a50eca14580e244"><td class="memItemLeft" align="right" valign="top"><a id="ac659dc063286fd9c6a50eca14580e244"></a>
typedef std::set&lt; unsigned int &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>iterator</b></td></tr>
<tr class="separator:ac659dc063286fd9c6a50eca14580e244"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83110cf07ce90a023f166b4a77d75ebf"><td class="memItemLeft" align="right" valign="top"><a id="a83110cf07ce90a023f166b4a77d75ebf"></a>
typedef std::set&lt; unsigned int &gt;::const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>const_iterator</b></td></tr>
<tr class="separator:a83110cf07ce90a023f166b4a77d75ebf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ef2b9df6d51c61475e6f7083b3ce77d"><td class="memItemLeft" align="right" valign="top"><a id="a1ef2b9df6d51c61475e6f7083b3ce77d"></a>
typedef std::set&lt; unsigned int &gt;::const_reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>const_reverse_iterator</b></td></tr>
<tr class="separator:a1ef2b9df6d51c61475e6f7083b3ce77d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7cea29161c8b000d65f12f7ce76a0eae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a7cea29161c8b000d65f12f7ce76a0eae">Selection</a> (<a class="el" href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a> cloud_ptr, bool register_stats=false)</td></tr>
<tr class="memdesc:a7cea29161c8b000d65f12f7ce76a0eae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="class_selection.html#a7cea29161c8b000d65f12f7ce76a0eae">更多...</a><br /></td></tr>
<tr class="separator:a7cea29161c8b000d65f12f7ce76a0eae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1c88c83410f8233d04cb5a3de3a9e9a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#aa1c88c83410f8233d04cb5a3de3a9e9a">Selection</a> (const <a class="el" href="class_selection.html">Selection</a> &amp;copy)</td></tr>
<tr class="memdesc:aa1c88c83410f8233d04cb5a3de3a9e9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor  <a href="class_selection.html#aa1c88c83410f8233d04cb5a3de3a9e9a">更多...</a><br /></td></tr>
<tr class="separator:aa1c88c83410f8233d04cb5a3de3a9e9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1860ec524d11c03de8c10a9354319839"><td class="memItemLeft" align="right" valign="top"><a id="a1860ec524d11c03de8c10a9354319839"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a1860ec524d11c03de8c10a9354319839">~Selection</a> ()</td></tr>
<tr class="memdesc:a1860ec524d11c03de8c10a9354319839"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a1860ec524d11c03de8c10a9354319839"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a841859b3c128ecba98979bae7af900e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_selection.html">Selection</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a841859b3c128ecba98979bae7af900e3">operator=</a> (const <a class="el" href="class_selection.html">Selection</a> &amp;selection)</td></tr>
<tr class="memdesc:a841859b3c128ecba98979bae7af900e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equal operator  <a href="class_selection.html#a841859b3c128ecba98979bae7af900e3">更多...</a><br /></td></tr>
<tr class="separator:a841859b3c128ecba98979bae7af900e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b9ae84218e327e1c84712f2faa60656"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a7b9ae84218e327e1c84712f2faa60656">addIndex</a> (unsigned int index)</td></tr>
<tr class="memdesc:a7b9ae84218e327e1c84712f2faa60656"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the index of the selected point to the selection table.  <a href="class_selection.html#a7b9ae84218e327e1c84712f2faa60656">更多...</a><br /></td></tr>
<tr class="separator:a7b9ae84218e327e1c84712f2faa60656"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1754bba8e2346dd43c65758e488bc76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#ad1754bba8e2346dd43c65758e488bc76">removeIndex</a> (unsigned int index)</td></tr>
<tr class="memdesc:ad1754bba8e2346dd43c65758e488bc76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the index of a point from the selection table.  <a href="class_selection.html#ad1754bba8e2346dd43c65758e488bc76">更多...</a><br /></td></tr>
<tr class="separator:ad1754bba8e2346dd43c65758e488bc76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29038f14cd7a3920f329f65f23591356"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a29038f14cd7a3920f329f65f23591356">addIndex</a> (const <a class="el" href="local_types_8h.html#a3c85da681fbf37b420b89c56681cdfe7">IndexVector</a> &amp;indices)</td></tr>
<tr class="memdesc:a29038f14cd7a3920f329f65f23591356"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a vector of indices of the selected points to the table.  <a href="class_selection.html#a29038f14cd7a3920f329f65f23591356">更多...</a><br /></td></tr>
<tr class="separator:a29038f14cd7a3920f329f65f23591356"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c20171319eedf6b00a5a72ae62b80fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a2c20171319eedf6b00a5a72ae62b80fc">removeIndex</a> (const <a class="el" href="local_types_8h.html#a3c85da681fbf37b420b89c56681cdfe7">IndexVector</a> &amp;indices)</td></tr>
<tr class="memdesc:a2c20171319eedf6b00a5a72ae62b80fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a vector of indices from the table  <a href="class_selection.html#a2c20171319eedf6b00a5a72ae62b80fc">更多...</a><br /></td></tr>
<tr class="separator:a2c20171319eedf6b00a5a72ae62b80fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee1da520788097ec071b6028f6520ea8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#aee1da520788097ec071b6028f6520ea8">addIndexRange</a> (unsigned int start, unsigned int num)</td></tr>
<tr class="memdesc:aee1da520788097ec071b6028f6520ea8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a range of consecutive indices into the selection table.  <a href="class_selection.html#aee1da520788097ec071b6028f6520ea8">更多...</a><br /></td></tr>
<tr class="separator:aee1da520788097ec071b6028f6520ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba0dfdf0990f170d54f1012932b75d90"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#aba0dfdf0990f170d54f1012932b75d90">removeIndexRange</a> (unsigned int start, unsigned int num)</td></tr>
<tr class="memdesc:aba0dfdf0990f170d54f1012932b75d90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a range of consecutive indices into the selection table.  <a href="class_selection.html#aba0dfdf0990f170d54f1012932b75d90">更多...</a><br /></td></tr>
<tr class="separator:aba0dfdf0990f170d54f1012932b75d90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42c62cee4f889ef466446b408054ea19"><td class="memItemLeft" align="right" valign="top"><a id="a42c62cee4f889ef466446b408054ea19"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a42c62cee4f889ef466446b408054ea19">clear</a> ()</td></tr>
<tr class="memdesc:a42c62cee4f889ef466446b408054ea19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes all the indices from the selection table. <br /></td></tr>
<tr class="separator:a42c62cee4f889ef466446b408054ea19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af004bfc40081da2fa203374ed1e2f668"><td class="memItemLeft" align="right" valign="top"><a id="af004bfc40081da2fa203374ed1e2f668"></a>
const_iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#af004bfc40081da2fa203374ed1e2f668">begin</a> () const</td></tr>
<tr class="memdesc:af004bfc40081da2fa203374ed1e2f668"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the begin iterator of the selection. <br /></td></tr>
<tr class="separator:af004bfc40081da2fa203374ed1e2f668"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dbd178663ae6ea07ca445bea9cd255e"><td class="memItemLeft" align="right" valign="top"><a id="a9dbd178663ae6ea07ca445bea9cd255e"></a>
const_iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a9dbd178663ae6ea07ca445bea9cd255e">end</a> () const</td></tr>
<tr class="memdesc:a9dbd178663ae6ea07ca445bea9cd255e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the end iterator of the selection. <br /></td></tr>
<tr class="separator:a9dbd178663ae6ea07ca445bea9cd255e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac79349e5e3da829b76424a532864f2e1"><td class="memItemLeft" align="right" valign="top"><a id="ac79349e5e3da829b76424a532864f2e1"></a>
const_reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#ac79349e5e3da829b76424a532864f2e1">rbegin</a> () const</td></tr>
<tr class="memdesc:ac79349e5e3da829b76424a532864f2e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the begin iterator of the selection. <br /></td></tr>
<tr class="separator:ac79349e5e3da829b76424a532864f2e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb402f4401ff784957cc33602e5532cf"><td class="memItemLeft" align="right" valign="top"><a id="acb402f4401ff784957cc33602e5532cf"></a>
const_reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#acb402f4401ff784957cc33602e5532cf">rend</a> () const</td></tr>
<tr class="memdesc:acb402f4401ff784957cc33602e5532cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the end iterator of the selection. <br /></td></tr>
<tr class="separator:acb402f4401ff784957cc33602e5532cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb4dc29169477cc1698620c45f18ffe4"><td class="memItemLeft" align="right" valign="top"><a id="aeb4dc29169477cc1698620c45f18ffe4"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#aeb4dc29169477cc1698620c45f18ffe4">isSelected</a> (unsigned int index) const</td></tr>
<tr class="memdesc:aeb4dc29169477cc1698620c45f18ffe4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the passed index is selected. <br /></td></tr>
<tr class="separator:aeb4dc29169477cc1698620c45f18ffe4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc50ca3fd1ef37445289c0e32469f0df"><td class="memItemLeft" align="right" valign="top"><a id="acc50ca3fd1ef37445289c0e32469f0df"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#acc50ca3fd1ef37445289c0e32469f0df">empty</a> () const</td></tr>
<tr class="memdesc:acc50ca3fd1ef37445289c0e32469f0df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if no point is selected. <br /></td></tr>
<tr class="separator:acc50ca3fd1ef37445289c0e32469f0df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ed4b4a8d20c8e8a94162efad6779d15"><td class="memItemLeft" align="right" valign="top"><a id="a5ed4b4a8d20c8e8a94162efad6779d15"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a5ed4b4a8d20c8e8a94162efad6779d15">size</a> () const</td></tr>
<tr class="memdesc:a5ed4b4a8d20c8e8a94162efad6779d15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of points in the selection <br /></td></tr>
<tr class="separator:a5ed4b4a8d20c8e8a94162efad6779d15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a495fe7abf1c2022ee0a196692cd28734"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a495fe7abf1c2022ee0a196692cd28734">invertSelect</a> ()</td></tr>
<tr class="memdesc:a495fe7abf1c2022ee0a196692cd28734"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invert selection  <a href="class_selection.html#a495fe7abf1c2022ee0a196692cd28734">更多...</a><br /></td></tr>
<tr class="separator:a495fe7abf1c2022ee0a196692cd28734"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a4ad387d6f6b3897544453ff477b030"><td class="memItemLeft" align="right" valign="top"><a id="a0a4ad387d6f6b3897544453ff477b030"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a0a4ad387d6f6b3897544453ff477b030">getStat</a> () const</td></tr>
<tr class="memdesc:a0a4ad387d6f6b3897544453ff477b030"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the statistics of the selected points in string. <br /></td></tr>
<tr class="separator:a0a4ad387d6f6b3897544453ff477b030"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_statistics"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_statistics')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_statistics.html">Statistics</a></td></tr>
<tr class="memitem:a4701d84102e2c9e20168f3ec544613ae inherit pub_methods_class_statistics"><td class="memItemLeft" align="right" valign="top"><a id="a4701d84102e2c9e20168f3ec544613ae"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_statistics.html#a4701d84102e2c9e20168f3ec544613ae">~Statistics</a> ()</td></tr>
<tr class="memdesc:a4701d84102e2c9e20168f3ec544613ae inherit pub_methods_class_statistics"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor <br /></td></tr>
<tr class="separator:a4701d84102e2c9e20168f3ec544613ae inherit pub_methods_class_statistics"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a53d1bd270d6d257d34d5bc8d50028049"><td class="memItemLeft" align="right" valign="top"><a id="a53d1bd270d6d257d34d5bc8d50028049"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a53d1bd270d6d257d34d5bc8d50028049">Selection</a> ()</td></tr>
<tr class="memdesc:a53d1bd270d6d257d34d5bc8d50028049"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor - object is not default constructable <br /></td></tr>
<tr class="separator:a53d1bd270d6d257d34d5bc8d50028049"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a16da878e38646f730a4d40f7f4ba73ac"><td class="memItemLeft" align="right" valign="top"><a id="a16da878e38646f730a4d40f7f4ba73ac"></a>
<a class="el" href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">cloud_ptr_</a></td></tr>
<tr class="memdesc:a16da878e38646f730a4d40f7f4ba73ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">a pointer to the cloud <br /></td></tr>
<tr class="separator:a16da878e38646f730a4d40f7f4ba73ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3b10912aa42bc8b2e965234634e21e0"><td class="memItemLeft" align="right" valign="top"><a id="ac3b10912aa42bc8b2e965234634e21e0"></a>
std::set&lt; unsigned int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a></td></tr>
<tr class="memdesc:ac3b10912aa42bc8b2e965234634e21e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">A set of unique indices that have been selected in the cloud. <br /></td></tr>
<tr class="separator:ac3b10912aa42bc8b2e965234634e21e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_statistics"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_statistics')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_statistics.html">Statistics</a></td></tr>
<tr class="memitem:ae0c0dc20399480729f93a5470679ca38 inherit pub_static_methods_class_statistics"><td class="memItemLeft" align="right" valign="top"><a id="ae0c0dc20399480729f93a5470679ca38"></a>
static std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_statistics.html#ae0c0dc20399480729f93a5470679ca38">getStats</a> ()</td></tr>
<tr class="memdesc:ae0c0dc20399480729f93a5470679ca38 inherit pub_static_methods_class_statistics"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the strings of the statistics. <br /></td></tr>
<tr class="separator:ae0c0dc20399480729f93a5470679ca38 inherit pub_static_methods_class_statistics"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65aec2bb494c12e19c2f5f60c1891767 inherit pub_static_methods_class_statistics"><td class="memItemLeft" align="right" valign="top"><a id="a65aec2bb494c12e19c2f5f60c1891767"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>clear</b> ()</td></tr>
<tr class="separator:a65aec2bb494c12e19c2f5f60c1891767 inherit pub_static_methods_class_statistics"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_statistics"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_statistics')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="class_statistics.html">Statistics</a></td></tr>
<tr class="memitem:a60ddd90a571ed4c3ce8c0f6317a36d63 inherit pro_methods_class_statistics"><td class="memItemLeft" align="right" valign="top"><a id="a60ddd90a571ed4c3ce8c0f6317a36d63"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_statistics.html#a60ddd90a571ed4c3ce8c0f6317a36d63">Statistics</a> ()</td></tr>
<tr class="memdesc:a60ddd90a571ed4c3ce8c0f6317a36d63 inherit pro_methods_class_statistics"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default constructor. <br /></td></tr>
<tr class="separator:a60ddd90a571ed4c3ce8c0f6317a36d63 inherit pro_methods_class_statistics"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a567e404052f8f50873c2dfa8cf261251 inherit pro_methods_class_statistics"><td class="memItemLeft" align="right" valign="top"><a id="a567e404052f8f50873c2dfa8cf261251"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_statistics.html#a567e404052f8f50873c2dfa8cf261251">Statistics</a> (const <a class="el" href="class_statistics.html">Statistics</a> &amp;)</td></tr>
<tr class="memdesc:a567e404052f8f50873c2dfa8cf261251 inherit pro_methods_class_statistics"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy Constructor <br /></td></tr>
<tr class="separator:a567e404052f8f50873c2dfa8cf261251 inherit pro_methods_class_statistics"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add22e612d4f455d5da0e6a02ea16d69a inherit pro_methods_class_statistics"><td class="memItemLeft" align="right" valign="top"><a id="add22e612d4f455d5da0e6a02ea16d69a"></a>
virtual <a class="el" href="class_statistics.html">Statistics</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_statistics.html#add22e612d4f455d5da0e6a02ea16d69a">operator=</a> (const <a class="el" href="class_statistics.html">Statistics</a> &amp;)</td></tr>
<tr class="memdesc:add22e612d4f455d5da0e6a02ea16d69a inherit pro_methods_class_statistics"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equal Operator <br /></td></tr>
<tr class="separator:add22e612d4f455d5da0e6a02ea16d69a inherit pro_methods_class_statistics"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a600df203053cd270b328d95df6a46aa6 inherit pro_methods_class_statistics"><td class="memItemLeft" align="right" valign="top"><a id="a600df203053cd270b328d95df6a46aa6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_statistics.html#a600df203053cd270b328d95df6a46aa6">registerStats</a> ()</td></tr>
<tr class="memdesc:a600df203053cd270b328d95df6a46aa6 inherit pro_methods_class_statistics"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a statistics <br /></td></tr>
<tr class="separator:a600df203053cd270b328d95df6a46aa6 inherit pro_methods_class_statistics"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>This class serves as a sort of mask for performing operations on a point cloud. It keeps track of the indices of identified/selected points and provides methods for accessing those indices and modifying them. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a7cea29161c8b000d65f12f7ce76a0eae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cea29161c8b000d65f12f7ce76a0eae">&#9670;&nbsp;</a></span>Selection() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Selection::Selection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a>&#160;</td>
          <td class="paramname"><em>cloud_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>register_stats</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cloud_ptr</td><td>A pointer to the const cloud object for which this object is to maintain selections. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      : <a class="code" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">cloud_ptr_</a>(cloud_ptr)</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;      <span class="keywordflow">if</span> (register_stats)</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="class_statistics.html#a600df203053cd270b328d95df6a46aa6">registerStats</a>();</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    }</div>
<div class="ttc" id="aclass_selection_html_a16da878e38646f730a4d40f7f4ba73ac"><div class="ttname"><a href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">Selection::cloud_ptr_</a></div><div class="ttdeci">ConstCloudPtr cloud_ptr_</div><div class="ttdoc">a pointer to the cloud</div><div class="ttdef"><b>Definition:</b> selection.h:200</div></div>
<div class="ttc" id="aclass_statistics_html_a600df203053cd270b328d95df6a46aa6"><div class="ttname"><a href="class_statistics.html#a600df203053cd270b328d95df6a46aa6">Statistics::registerStats</a></div><div class="ttdeci">void registerStats()</div><div class="ttdoc">Register a statistics</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aa1c88c83410f8233d04cb5a3de3a9e9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1c88c83410f8233d04cb5a3de3a9e9a">&#9670;&nbsp;</a></span>Selection() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Selection::Selection </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_selection.html">Selection</a> &amp;&#160;</td>
          <td class="paramname"><em>copy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Copy constructor </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">copy</td><td>The selection object to be copied </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;      : <a class="code" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">cloud_ptr_</a>(copy.<a class="code" href="class_selection.html#a16da878e38646f730a4d40f7f4ba73ac">cloud_ptr_</a>), <a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>(copy.<a class="code" href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">selected_indices_</a>)</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    }</div>
<div class="ttc" id="aclass_selection_html_ac3b10912aa42bc8b2e965234634e21e0"><div class="ttname"><a href="class_selection.html#ac3b10912aa42bc8b2e965234634e21e0">Selection::selected_indices_</a></div><div class="ttdeci">std::set&lt; unsigned int &gt; selected_indices_</div><div class="ttdoc">A set of unique indices that have been selected in the cloud.</div><div class="ttdef"><b>Definition:</b> selection.h:203</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a29038f14cd7a3920f329f65f23591356"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29038f14cd7a3920f329f65f23591356">&#9670;&nbsp;</a></span>addIndex() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Selection::addIndex </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="local_types_8h.html#a3c85da681fbf37b420b89c56681cdfe7">IndexVector</a> &amp;&#160;</td>
          <td class="paramname"><em>indices</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a vector of indices of the selected points to the table. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">indices</td><td>A vector of indices of points to be added to the table. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>前置条件</dt><dd>Assumes the passed index is valid with respect to the current cloud. </dd></dl>

</div>
</div>
<a id="a7b9ae84218e327e1c84712f2faa60656"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b9ae84218e327e1c84712f2faa60656">&#9670;&nbsp;</a></span>addIndex() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Selection::addIndex </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds the index of the selected point to the selection table. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index of the point that is selected. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>前置条件</dt><dd>Assumes the passed index is valid with respect to the current cloud. </dd></dl>

</div>
</div>
<a id="aee1da520788097ec071b6028f6520ea8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee1da520788097ec071b6028f6520ea8">&#9670;&nbsp;</a></span>addIndexRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Selection::addIndexRange </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a range of consecutive indices into the selection table. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>the first index in the range. </td></tr>
    <tr><td class="paramname">num</td><td>the total number of indices in the range. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>前置条件</dt><dd>Assumes the passed index is valid with respect to the current cloud. </dd></dl>

</div>
</div>
<a id="a495fe7abf1c2022ee0a196692cd28734"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a495fe7abf1c2022ee0a196692cd28734">&#9670;&nbsp;</a></span>invertSelect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Selection::invertSelect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invert selection </p>
<p>Make the unselected points selected and deselect the previously selected points. </p>

</div>
</div>
<a id="a841859b3c128ecba98979bae7af900e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a841859b3c128ecba98979bae7af900e3">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_selection.html">Selection</a>&amp; Selection::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_selection.html">Selection</a> &amp;&#160;</td>
          <td class="paramname"><em>selection</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equal operator </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">selection</td><td>a const reference to a selection object whose properties will be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2c20171319eedf6b00a5a72ae62b80fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c20171319eedf6b00a5a72ae62b80fc">&#9670;&nbsp;</a></span>removeIndex() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Selection::removeIndex </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="local_types_8h.html#a3c85da681fbf37b420b89c56681cdfe7">IndexVector</a> &amp;&#160;</td>
          <td class="paramname"><em>indices</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a vector of indices from the table </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">indices</td><td>A vector of indices of points to be removed from the table. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad1754bba8e2346dd43c65758e488bc76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1754bba8e2346dd43c65758e488bc76">&#9670;&nbsp;</a></span>removeIndex() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Selection::removeIndex </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes the index of a point from the selection table. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index of the point to be removed from the table. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aba0dfdf0990f170d54f1012932b75d90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba0dfdf0990f170d54f1012932b75d90">&#9670;&nbsp;</a></span>removeIndexRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Selection::removeIndexRange </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a range of consecutive indices into the selection table. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>the first index in the range. </td></tr>
    <tr><td class="paramname">num</td><td>the total number of indices in the range. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/<a class="el" href="selection_8h_source.html">selection.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_selection.html">Selection</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
